package com.rainy.sys;

import com.rainy.sso.client.entity.User;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author liuqin on 2017/12/12
 */
@RestController
public class TestController {
   @Resource
    private TestService testService;

    @RequestMapping(value = "/users/{id}",method = RequestMethod.GET)
    public User testController(@PathVariable Long id){
        return testService.queryUserById(id);
    }

}
